package p_103

import java.net.NetworkInterface
import java.util.*

/**
 * NetworkInterface 的api
 */
class InterfaceListener {

    fun doSome(){
        val interfaces: Enumeration<NetworkInterface> = NetworkInterface.getNetworkInterfaces()
        for (item in interfaces){
            println("item-->$item" )
//            println("item-->${item.displayName}" +
//                    "->${item.hardwareAddress}" +
//                    "->${item.inetAddresses}")
        }
    }

}